Regression-Based Self-Tuning Modeling of Smooth User-Defined Function Costs for an Object-Relational Database Management System Query Optimizer
نویسندگان
چکیده
We present a new approach to modeling the execution costs of user-defined functions (UDFs) for the query optimizer of an object-relational DBMS (ORDBMS). Our approach self-tunes a cost model incrementally based on the costs of the recent executions of a UDF. The approach is centered on a feedback loop in which the feedback information comprises individual UDF execution records. Each execution record contains the cost variable values used in the execution and the resulting CPU and disk I/O costs. This feedback information is saved in the execution log and used in a batch to update the cost model. Furthermore, our approach handles nominal cost variables by maintaining separate cost models for recently used values of the variables. We have built a framework that implements the feedback loop in a commercial ORDBMS. Then, we have performed experiments using common database UDFs with smooth cost variations and incrementally modeling the data using multiple regression. The experimental results demonstrate the adaptive accuracy that makes the cost model stabilize quickly while incurring small errors in cost estimations. Our approach has the advantages of incurring little overhead while tuning the cost model continuously throughout the UDF executions.
منابع مشابه
A Statistical Cost-Modeling of Financial Time Series Functions for an Object-Relational DBMS Query Optimizer
Financial time series functions are in prevalent use in stock market analysis, and are so important in business applications as to be supported by every major commercial object-relational database management system (ORDBMS). These ORDBMSs require users to provide the cost functions of user-defined functions (UDFs) for their query optimizers. The traditional approach to developing a cost functio...
متن کاملSelf-tuning UDF Cost Modeling Using the Memory-Limited Quadtree
Query optimizers in object-relational database management systems require users to provide the execution cost models of user-defined functions(UDFs). Despite this need, however, there has been little work done to provide such a model. Furthermore, none of the existing work is self-tuning and, therefore, cannot adapt to changing UDF execution patterns. This paper addresses this problem by introd...
متن کاملControl and Optimization Strategies in the Implementation of LDL
The Logic Data Language, LDL, combines the expressive power of a highlevel, logic-based language (such as Prolog) with the nonnavigational style of relational query languages, where the user need only supply a correct query, and the system (i.e., the compiler/optimizer) is expected to devise an efficient execution strategy for it. Consequently, the optimizer is given the responsibility of choos...
متن کاملSelectivity & Cost Estimates in Query Optimization in Distributed Databases
Query optimizers are critical to the efficiency of modern relational database systems. If a query optimizer chooses a poor query execution plan, the performance of the database system in answering the query can be very poor. This study describes that there are numerous alternative ways to execute a query. These are so called execution plans. A component in the database management system called ...
متن کاملFeedback-Directed Query Optimization
Current database systems employ static heuristics for estimating the access time of a particular query. These heuristics are based on several parameters, such as relation size and number of tuples. Yet these parameters are only updated intermittently, and the heuristics themselves are hand-tuned. As trends in database systems aim toward self-tuning systems, we can apply the experience of the fe...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Comput. J.
دوره 47 شماره
صفحات -
تاریخ انتشار 2004